package lesson14;

import java.util.Scanner;

public class AuctionDemo {

	public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
		Auction auction = new Auction();
		int personNumber;
		int carsNumber;
		do{
			System.out.println("Enter number of person");
			personNumber = sc.nextInt();
		}while(personNumber<0);
		do{
			System.out.println("Enter number of cars");
			carsNumber = sc.nextInt();
		}while(carsNumber<0);
		
		auction.carsNumber = carsNumber;
		auction.personNumber = personNumber;
		auction.open();
		sc.close();
	}

}
